<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./TemplateUsuario.xhtml">

            <ui:define name="top">

            </ui:define>

            <ui:define name="left">

            </ui:define>

            <ui:define name="right">

            </ui:define>

            <ui:define name="content">
                <h:form>
                    <p:panel>
                        <center>
                            <p:commandButton action="Compra" value="Compra" actionListener="#{compraBean.mostrarCompra}" ajax="false"/>
                        <p:commandButton action="CompraProgramada" value="Compra Programada" actionListener="#{compraBean.mostrarCompra}" ajax="false"/>
                        </center>
                        <br/>
                        <br/>
                        <center>
                            <p:galleria value="#{galleriaBean.images}" var="image" transitionInterval="5000" panelWidth="500" panelHeight="313" showCaption="true">  
                                <p:graphicImage value="./caf/#{image}" title="#{image}" width="500" height="313"/>  
                            </p:galleria>
                            <br/>
                            <br/>
                        </center>
                    </p:panel>
                </h:form>
            </ui:define>

            <ui:define name="bottom">

            </ui:define>

        </ui:composition>

    </body>
</html>
